package com.fly.lambda.domain;

import com.sun.istack.internal.NotNull;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Created by Fly on 2016/7/19.
 */
@Entity
@Table(name = "t_account_info")
public class Account {

    @Id
    @Column(name = "account_id", length = 32)
    private String accountId;       //账号id

    @Column(name = "login_name", length = 30)
    @NotNull
    private String loginName;       //用户名

    @Column(name = "password", length = 32)
    @NotNull
    private String password;        //密码

    @Column(name = "header_pic", length = 200)
    private String headerPic;       //头像

    @Column(name = "status")
    private String status;      //账号状态

    public String getAccountId() {
        return accountId;
    }

    public void setAccountId(String accountId) {
        this.accountId = accountId;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getHeaderPic() {
        return headerPic;
    }

    public void setHeaderPic(String headerPic) {
        this.headerPic = headerPic;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
}
